<?
/**
 * Load the required app/database objects
 */
// required configs
require('/etc/timeline-history/timeline-history.php');
require(dirname(__FILE__) . '/strings.php');
require(dirname(__FILE__) . '/functions.php');

// database object prerequisites
require('/usr/share/php/phpdbo/phpmydb.class.php');
require('/usr/share/php/phpdbo/phpdbo.class.php');

// timeline-db-api objects
require('/usr/share/php/timeline-db-api/dbo.php');
require('/usr/share/php/timeline-db-api/category.php');
require('/usr/share/php/timeline-db-api/event.php');
require('/usr/share/php/timeline-db-api/log.php');
require('/usr/share/php/timeline-db-api/media.php');
require('/usr/share/php/timeline-db-api/mime.type.php');
require('/usr/share/php/timeline-db-api/source.php');
require('/usr/share/php/timeline-db-api/user.php');

// webapp database object extensions
require(dirname(__FILE__) . '/Category.php');
require(dirname(__FILE__) . '/Event.php');
require(dirname(__FILE__) . '/Event.List.php');
require(dirname(__FILE__) . '/Log.php');
require(dirname(__FILE__) . '/Source.php');
require(dirname(__FILE__) . '/User.php');

// web app classes
require(dirname(__FILE__) . '/auth.php');
require(dirname(__FILE__) . '/html.php');
require(dirname(__FILE__) . '/session.php');
require(dirname(__FILE__) . '/webapp.php');
require(dirname(__FILE__) . '/menu.php');

// Instantiate webapp object
$_APP = getWebApp();
?>
